<?php

namespace app\common\hook;

use app\common\model\GlobalData;
use think\Controller;
use think\Request;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/5
 * Time: 23:22
 */
class ActionBegin extends Controller {
	
	public function run(){
		$data_model=new GlobalData();
		$system_data=$data_model->getList(['group'=>'system']);
		$this->assign('system_data',$system_data);
		$this->assign('is_mobile',Request::instance()->isMobile()?1:0);
	}
}